package com.example.mybatisplus.enums;

import com.baomidou.mybatisplus.annotation.TableName;

public enum TypeName {
    TEST("qwe","枚举类的值1"),
    SSS("4saf1","枚举类的值2");
    private String otherName;
    private String otherNameDesc;
    TypeName(String otherName,String otherNameDesc){
        this.otherName = otherName;
        this.otherNameDesc = otherNameDesc;
    }
    public static TypeName getTypeName(String otherName){
        switch (otherName){
            case "qwe": return TypeName.TEST;
            case "4saf1": return TypeName.SSS;
            default: return null;
        }
    }
}
